package com.lkm.market2_0.m_imple.steelyardserver.server.sendtask;

import com.lkm.frame.task2.ITaskExecutor;
import com.lkm.frame.task2.TaskManager;
import com.lkm.hardware_connect.IHardwareControler;
import com.lkm.market2_0.m_imple.steelyardserver.server.AbsSendWriteTask;
import com.lkm.market2_0.m_imple.steelyardserver.server.ReceiveTask;



public class SetLockKeySwitchTask extends AbsSendWriteTask {

    

    public SetLockKeySwitchTask(ITaskExecutor<Object[], Void, Boolean> taskExecutor, TaskManager mTaskManager, IHardwareControler bluetoothSocket, ReceiveTask mReceiveTask, boolean isLock) {
        super(taskExecutor, SetLockKeySwitchTask.class.getName(), mTaskManager, bluetoothSocket, mReceiveTask);
        this.isLock = isLock;
    }

    private boolean isLock = true;

    @Override
    protected boolean configIsWatiTick() {
        return false;
    }

    @Override
    protected byte onGetRequestCMD(int[] outDataSize) {
        outDataSize[0] = isLock ? 1 : 0;
        return 0x11;
    }


    @Override
    protected int configWriteOutTime() {
        return (int)1.5*1000;
    }

    @Override
    protected byte[] onGetRequestCMDContent() {
        return null;
    }


    @Override
    protected byte[] onGetSendDataItem(int index) {
        return null;
    }

}